CocosMagic.registerComponent("text",function () {
    return new ccui.Text();
},function (node,attributes) {
    for(var attrName in attributes){
        switch(attrName){
            case 'txt':
                node.setString(attributes[attrName]);
                break;
        }

    }
})